﻿using System.Windows;
using System.Windows.Controls;
using Prism.Events;
using WPFNote.Utilities.Extensions;

namespace WPFNote.Views
{
    public partial class Login : UserControl
    {
        public Login(IEventAggregator aggregator)
        {
            InitializeComponent();
            //注册提示消息
            aggregator.ResgiterMessage(arg =>
            {
                LoginSnakeBar.MessageQueue?.Enqueue(arg.Message);
            }, "Login");
        }
    }
}